package com.atguigu.exphandler;

import lombok.Data;
import lombok.NoArgsConstructor;

//自定义异常
@Data
//@AllArgsConstructor
@NoArgsConstructor
public class YyghException extends RuntimeException {

    private Integer code;
    private String msg;

    public YyghException(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
